import request from '@/utils/request'

// 查询店铺仓库绑定关系列表
export function JstShopInfo(query) {
  return request({
    url: '/conf/JstShopInfo/list',
    method: 'get',
    params: query
  })
}
// 查询店铺仓库绑定关系列表
export function BiShopWarehouseRelation(query) {
  return request({
    url: '/conf/BiShopWarehouseRelation/list',
    method: 'get',
    params: query
  })
}
// 查询店铺仓库绑定关系列表
export function listBiStoreWarehouseBinding(query) {
  return request({
    url: '/conf/BiStoreWarehouseBinding/list',
    method: 'get',
    params: query
  })
}
// 查询店铺仓库绑定关系详细
export function getBiStoreWarehouseBinding(id) {
  return request({
    url: '/conf/BiStoreWarehouseBinding/' + id,
    method: 'get'
  })
}

// 新增店铺仓库绑定关系
export function addBiStoreWarehouseBinding(data) {
  return request({
    url: '/conf/BiStoreWarehouseBinding',
    method: 'post',
    data: data
  })
}
// 新增店铺仓库绑定关系
export function update(data) {
  return request({
    url: '/conf/BiStoreWarehouseBinding/update',
    method: 'post',
    data: data
  })
}
// 修改店铺仓库绑定关系
export function batchEdit(data) {
  return request({
    url: '/conf/BiStoreWarehouseBinding/batchEdit',
    method: 'put',
    data: data
  })
}
// 修改店铺仓库绑定关系
export function updateBiStoreWarehouseBinding(data) {
  return request({
    url: '/conf/BiStoreWarehouseBinding',
    method: 'put',
    data: data
  })
}
// 删除店铺仓库绑定关系
export function delBiStoreWarehouseBinding(id) {
  return request({
    url: '/conf/BiStoreWarehouseBinding/' + id,
    method: 'delete'
  })
}
